import {createApp} from 'vue'
import qs from 'qs';
import App from './App'
import index from './router'
import store from './store'
import router from "./router";
// import {Form,Field} from 'vee-validate'
import ElementPlus from 'element-plus'
import * as echarts from 'echarts'

// import 'element-ui/lib/theme-chalk/index.css';
import 'element-plus/theme-chalk/index.css'
import axios from "./axios";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


///console.log("123")


// Vue.config.productionTip = false

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// axios.defaults.baseURL = ''
app.use(ElementPlus).use(echarts).use(index).use(store).mount('#app');
app.config.globalProperties.$axios = axios;// 全局使用
app.config.globalProperties.$echarts = echarts;
app.config.globalProperties.$qs = qs;

// require("./mock");

// new Vue({
//     index,
//     store,
//     render: h => h(App)
// }).$mount('#app')
